package com.amumu.netctoss.entity;

public class Bill {
	
	private Integer id;
	private Account account;
	private String billMonth;
	private Double cost;
	private String paymentMode;
	private String payState;
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Account getAccount() {
		return account;
	}
	public void setAccount(Account account) {
		this.account = account;
	}
	public String getBillMonth() {
		return billMonth;
	}
	public void setBillMonth(String billMonth) {
		this.billMonth = billMonth;
	}
	public Double getCost() {
		return cost;
	}
	public void setCost(Double cost) {
		this.cost = cost;
	}
	public String getPaymentMode() {
		return paymentMode;
	}
	public void setPaymentMode(String paymentMode) {
		this.paymentMode = paymentMode;
	}
	public String getPayState() {
		return payState;
	}
	public void setPayState(String payState) {
		this.payState = payState;
	}
	
	public String toBillMonth(){
		String year = this.billMonth.substring(0, 4)+"年";
		String month = this.billMonth.substring(4);
		if(month.charAt(0)=='0'){
			month = month.charAt(1)+"";
		}
		return year+month+"月";
	}
	
}
